package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 用户登录对象 user
 * 
 * @author Wxl
 * @date 2022-03-26
 */
@Data
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String username;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String mobile;

    /** 登录密码 */
    @Excel(name = "登录密码")
    private String password;

    /** 微信openid */
    @Excel(name = "微信openid")
    private String openId;

    /** 头像 */
    @Excel(name = "邮箱")
    private String avatar;

    /** 用户真实姓名 */
    @Excel(name = "用户真实姓名")
    private String truename;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill= FieldFill.INSERT)
    private Date createTime;

}
